<?php
/**
 * +----------------------------------------------------------------------
 * | Copyright © Sogu Technologies Co. Ltd 2018-2050 All rights reserved.
 * +----------------------------------------------------------------------
 * | File name: R360FieldTransfer.php
 * +----------------------------------------------------------------------
 * | Author: sam
 * +----------------------------------------------------------------------
 * | Description: 用于详细说明此程序文件完成的主要功能，与其他模块或函数的接口、输出值、取值范围、含义及参数间的控制、顺序或依赖等关系。
 * +----------------------------------------------------------------------
 * | Others: 其他内容的说明
 * +----------------------------------------------------------------------
 * | History: 修改历史记录列表，每条修改记录应包含修改日期、修改者及修改内容简述
 * +----------------------------------------------------------------------
 * | 1.Date: 2019-02-25 Author: sam Modification: 创建
 * +----------------------------------------------------------------------
 */

namespace App\Library\Tools;


class R360FieldTransfer
{
    /**
     * Description:360学历映射关系
     * Author: Sam
     * DateTime: 2019-02-25 13:46
     * @param $val
     * @return mixed
     */
    public static function edu_transfer($val)
    {
        $relation = [
            '1'=>'01',
            '2'=>'02',
            '3'=>'03',
            '4'=>'04',
        ];
        return $relation[$val];
    }

    /**
     * Description:联系人A映射关系
     * Author: Sam
     * DateTime: 2019-02-25 13:55
     * @param $val
     * @return mixed
     */
    public static function relation_ship_A_transfer($val)
    {
        $relation = [
            '1'=>'1',
            '2'=>'2'
        ];
        return $relation[$val];
    }

    /**
     * Description:联系人B映射关系
     * Author: Sam
     * DateTime: 2019-02-25 13:55
     * @param $val
     * @return mixed
     */
    public static function relation_ship_B_transfer($val)
    {
        $relation = [
            '1'=>'6',
            '2'=>'2',
            '3'=>'4',
            '4'=>'4',
        ];
        return $relation[$val];
    }
}